package com.dianqiu.common.bean;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import com.dianqiu.base.bean.BaseTO;

/**
 * DqBetCompany entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "dq_bet_company", catalog = "dq_dev")
public class DqBetCompanyTO extends BaseTO implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer cmpyId;
	private String cmpyName;
	private String cmpyNameEn;
	private String cmpyNameSc;
	private String cmpyNameTc;
	private Integer cmpyPriority;
	private Set<DqHandicapTO> dqHandicaps = new HashSet<DqHandicapTO>(0);
	private Set<DqHandicapHistTO> dqHandicapHists = new HashSet<DqHandicapHistTO>(0);
	private Set<DqUserBetConfigTO> dqUserBetConfigs = new HashSet<DqUserBetConfigTO>(0);

	@Id
	@Column(name = "CMPY_ID", unique = true, nullable = false)
	public Integer getCmpyId() {
		return this.cmpyId;
	}

	public void setCmpyId(Integer cmpyId) {
		this.cmpyId = cmpyId;
	}

	@Column(name = "CMPY_NAME", length = 45)
	public String getCmpyName() {
		return this.cmpyName;
	}

	public void setCmpyName(String cmpyName) {
		this.cmpyName = cmpyName;
	}

	@Column(name = "CMPY_NAME_EN", length = 200)
	public String getCmpyNameEn() {
		return this.cmpyNameEn;
	}

	public void setCmpyNameEn(String cmpyNameEn) {
		this.cmpyNameEn = cmpyNameEn;
	}

	@Column(name = "CMPY_NAME_SC", length = 200)
	public String getCmpyNameSc() {
		return this.cmpyNameSc;
	}

	public void setCmpyNameSc(String cmpyNameSc) {
		this.cmpyNameSc = cmpyNameSc;
	}

	@Column(name = "CMPY_NAME_TC", length = 200)
	public String getCmpyNameTc() {
		return this.cmpyNameTc;
	}

	public void setCmpyNameTc(String cmpyNameTc) {
		this.cmpyNameTc = cmpyNameTc;
	}

	@Column(name = "CMPY_PRIORITY")
	public Integer getCmpyPriority() {
		return this.cmpyPriority;
	}

	public void setCmpyPriority(Integer cmpyPriority) {
		this.cmpyPriority = cmpyPriority;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "dqBetCompany")
	public Set<DqHandicapTO> getDqHandicaps() {
		return this.dqHandicaps;
	}

	public void setDqHandicaps(Set<DqHandicapTO> dqHandicaps) {
		this.dqHandicaps = dqHandicaps;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "dqBetCompany")
	public Set<DqHandicapHistTO> getDqHandicapHists() {
		return this.dqHandicapHists;
	}

	public void setDqHandicapHists(Set<DqHandicapHistTO> dqHandicapHists) {
		this.dqHandicapHists = dqHandicapHists;
	}
	
	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "dqBetCompany")
	public Set<DqUserBetConfigTO> getDqUserBetConfigs() {
		return this.dqUserBetConfigs;
	}

	public void setDqUserBetConfigs(Set<DqUserBetConfigTO> dqUserBetConfigs) {
		this.dqUserBetConfigs = dqUserBetConfigs;
	}

}